import Vue from 'vue'
import Router from 'vue-router'
import Order from '../components/order'
import Detail from '../components/detail'
import Notice from '../components/lxd/notice.vue'
import Push from '../components/lxd/push.vue'
import Home from '../components/lxd/homePage.vue'
import Help from '../components/lxd/help.vue'
import EmailDetail from '../components/lxd/detail/emailDetail.vue'
import NoteDetail from '../components/lxd/detail/noteDetail.vue'
import Echarts from '../components/lxd/detail/echarts.vue'
import schoolsetting from "../components/schoolsetting.vue";
import schooledit from "../components/schooledit.vue";
import campusset from "../components/campusset.vue";
import schoolmanage from "../components/schoolmanage.vue";
import personal from "../components/personal.vue";
import rulesetting from "../components/rulesetting.vue";
import login from "../components/login.vue";
import Orderwater from "../components/orderwater.vue";
import Salay from "../components/salay.vue";
import Salay2 from "../components/salay2.vue";
import Salay3 from "../components/salay3.vue";
import Outputmoney from "../components/outputmoney.vue";
import Student from "../components/student.vue";
import Page from "../components/page.vue";
import Imag from "../components/imag.vue";
import Inputmoney from "../components/inputmoney.vue";
import Im from "../components/im.vue";

import Menu from '../components/menu'
import dynamic from '../components/dynamic'
import prospectiveStudent from '../components/prospectiveStudent'
import aboutSchool from '../components/aboutSchool'
import psAdd from '../components/psAdd'
import psUpdate from '../components/psUpdate'
import PSDelDeatail from '../components/PSDelDeatail'
import PSDetail from '../components/PSDetail'
import statistics from '../components/statistics'
import statistics1 from '../components/statistics1'
import clue from '../components/clue'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path:'/',
      component:login
    },
    {
      path: '/menu',
      name:'menu',
      component: Menu,
      children:[
        {
          path: '/homePage',
          component: Home
        },
        {
          path: '/order',
          name: 'Order',
          component: Order
        },
        {
          path: '/detail',
          name: 'Detail',
          component: Detail
        }, 
        {
          path:"/push",
          component: Push,
        },
        {
          path:"/notice",
          component: Notice,
        },
        {
          path:"/help",
          component: Help,
        },
        {
          path:"/emailDetail",
          name:"emailDetail",
          component: EmailDetail,
        },
        {
          path:"/noteDetail",
          name:"noteDetail",
          component: NoteDetail,
        },
        {
          path:"/echarts",
          component: Echarts,
        },
        {
          path: '/dynamic',
          name: 'dynamic',
          component: dynamic
        },
        {
          path: '/aboutSchool',
          name: 'aboutSchool',
          component: aboutSchool
        },
        {
          path: '/prospectiveStudent',
          name: 'prospectiveStudent',
          component: prospectiveStudent
        },
        {
          path: '/psAdd',
          name: 'psAdd',
          component: psAdd
        },
        {
          path: '/psUpdate/:id',
          name: 'psUpdate',
          component: psUpdate
        },
        {
          path: '/PSDelDeatail',
          name: 'PSDelDeatail',
          component: PSDelDeatail
        },
        {
          path: '/PSDetail/:id',
          name: 'PSDetail',
          component: PSDetail
        },
        {
          path: '/statistics',
          name: 'statistics',
          component: statistics
        },
        {
          path: '/statistics1',
          name: 'statistics1',
          component: statistics1
        },
        {
          path: '/clue',
          name: 'clue',
          component: clue
        },
       
      ]
    }, 
        
        {
          path: '/schoolsetting',
          component: schoolsetting
        },{
          path: '/campusset',
          component: campusset
        },
        {
          path: '/schooledit',
          name:'schooledit',
          component: schooledit
        },
        {
          path:'/orderwater',
          name:'Orderwater',
          component: Orderwater
        },
        {
          path: '/salay',
          name: 'Salay',
          component: Salay
        },{
          path: '/salay2',
          name: 'Salay2',
          component: Salay2
        },
        {
          path: '/salay3',
          name: 'Salay3',
          component: Salay3
        },
        {
          path: '/outputmoney',
          name: 'Outputmoney',
          component: Outputmoney
        },
        {
          path: '/student',
          name: 'Student',
          component: Student
        },
        {
          path: '/page',
          name: 'Page',
          component: Page
        },
        {
          path: '/imag',
          name: 'Imag',
          component: Imag
        },
        {
          path: '/inputmoney',
          name: 'Inputmoney',
          component: Inputmoney
        },
        {
          path: '/im',
          name: 'Im',
          component: Im
        },
        {
          path: '/schoolmanage',
          name:'schoolmanage',
          component: schoolmanage
        },{
          path: '/personal',
          name:'personal',
          component: personal
        },{
          path: '/rulesetting',
          name:'rulesetting',
          component:rulesetting
        },
        

  ]
})
